﻿using System;
using System.Collections.Generic;

namespace Rj.PersonnelVerification.Server.DataBaseContext.Entities
{
    public partial class ActReProcdef
    {
        public ActReProcdef()
        {
            ActRuExecutions = new HashSet<ActRuExecution>();
            ActRuIdentitylinks = new HashSet<ActRuIdentitylink>();
            ActRuIncidents = new HashSet<ActRuIncident>();
            ActRuTasks = new HashSet<ActRuTask>();
        }

        public string Id { get; set; } = null!;
        public int? Rev { get; set; }
        public string? Category { get; set; }
        public string? Name { get; set; }
        public string Key { get; set; } = null!;
        public int Version { get; set; }
        public string? DeploymentId { get; set; }
        public string? ResourceName { get; set; }
        public string? DgrmResourceName { get; set; }
        public byte? HasStartFormKey { get; set; }
        public byte? SuspensionState { get; set; }
        public string? TenantId { get; set; }
        public string? VersionTag { get; set; }
        public int? HistoryTtl { get; set; }
        public bool? Startable { get; set; }

        public virtual ICollection<ActRuExecution> ActRuExecutions { get; set; }
        public virtual ICollection<ActRuIdentitylink> ActRuIdentitylinks { get; set; }
        public virtual ICollection<ActRuIncident> ActRuIncidents { get; set; }
        public virtual ICollection<ActRuTask> ActRuTasks { get; set; }
    }
}
